#pragma once

#include <gofcl_eclic.h>

#define LEVEL_PRIORITY_BIT_AMOUNT 4

// GD32VF103的level和priority域共计4位，因此priority的位数为4 - nlbits。
typedef enum {
	NLBITS_LEVEL_0_PRIORITY_4 = 0,
	NLBITS_LEVEL_1_PRIORITY_3 = 1,
	NLBITS_LEVEL_2_PRIORITY_2 = 2,
	NLBITS_LEVEL_3_PRIORITY_1 = 3,
	NLBITS_LEVEL_4_PRIORITY_0 = 4,
} eclic_cliccfg_nlbits_e;

// 由nlbits获取level域位数
static inline u32_s eclic_get_level_bit_amount(eclic_cliccfg_nlbits_e nlbits) {
	return nlbits;
}
